// index.html 100913 require_once($_SERVER["DOCUMENT_ROOT"] . "/framework/global.php"); // Start - Use this area for page specific PHP script. $page = ""; // Use these values to override the page specific title, description and keywords. $title = ""; $description = ""; $keywords = ""; // Page Class Integration - Get Page Specific Information require_once ($_SERVER['DOCUMENT_ROOT'].'/administration/classes/page.php'); require_once ($_SERVER['DOCUMENT_ROOT'].'/administration/classes/post.php'); require_once ($_SERVER['DOCUMENT_ROOT'].'/administration/classes/related.php'); $noRight = 0; if (array_key_exists('type', $_GET)) $type = $_GET['type']; else $type = 'page'; if(isset($_GET['url']) && ($_GET['url'] == "facility-seating-plans" || $_GET['url'] == "premium-seating-club-holder-form")) $noRight = 1; switch ($type) { case 'seating': if (array_key_exists('slug', $_GET) && ! empty($_GET['slug'])) { $thePage = new Post($_GET['slug'], 'slug'); } else $thePage = new Post(); $page = ""; $content = $thePage->render(false); $javascript = ""; // Use these values to override the page specific title, description and keywords. $title = $thePage->title; $description = ""; $keywords = ""; $page_id = '12'; $category_id = '4'; $noRight = 1; break; default: if (array_key_exists('url', $_GET) && ! empty($_GET['url'])) { $slug = $_GET['url']; $thePage = new Page($slug, 'slug'); if($thePage->id == "") $thePage = new Page('404-not-found', 'slug'); } else $thePage = new Page('404-not-found', 'slug'); $page = ""; $content = $thePage->render(false); $javascript = $thePage->javascript; // Use these values to override the page specific title, description and keywords. $title = $thePage->title; $description = $thePage->seo_description; $keywords = $thePage->seo_keywords; $page_id = $thePage->id; $category_id = $thePage->category_id; break; } $pageURL = (@$_SERVER["HTTPS"] == "on") ? "https://" : "http://"; if ($_SERVER["SERVER_PORT"] != "80") $pageURL .= urlencode($_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"]); else $pageURL .= urlencode($_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]); $summaryofPage = urlencode(htmlspecialchars($title) . " - The WFCU Centre Official Website"); // End include($_SERVER["DOCUMENT_ROOT"] . "/framework/head.php"); ?> if($javascript != "") { echo "\n"; } include($_SERVER["DOCUMENT_ROOT"] . "/framework/body.php"); ?>